package com.supermap.crypto;

import java.util.Base64;

/**
 * @author liqs
 * @version 1.0
 * @date 2021/10/11 15:29
 */
public class BASE64 {

    public static byte[] getDecoder(String str) {
        return Base64.getDecoder().decode(str);
    }

    public static String getEncoder(byte[] decode) {
        return Base64.getEncoder().encodeToString(decode);
    }

}
